import { connect } from 'dva';

import { CommonLogs } from "@/components/CommonLogs";

const action = 'service/fetchOperateLog';

@connect(({ loading }) => ({
  loading: loading.effects[action],
}))

export default class OperationLogView extends CommonLogs {

  componentDidMount() {
    this.queryOperationLog();
  }

  get action() {
    return action;
  }

  get idName() {
    return 'serviceId';
  }

  render() {
    const { loading } = this.props;
    return (
      <div>
        {this.renderTable(loading)}
      </div>
    );
  }
}
